<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>内容配置 - 大模型文档智能生成平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        /* [跟上面页面完全相同的CSS，为了独立运行，这里全部复制一份] */
        :root {
            --primary-color: #006838;
            --accent-color: #B58E55;
            --bg-color: #f4f6f9;
            --text-color: #333;
            --border-color: #e0e0e0;
            --sidebar-width: 240px;
            --header-height: 60px;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            background-color: var(--bg-color);
            color: var(--text-color);
            font-size: 14px;
        }

        .app-container { display: flex; height: 100vh; }
        .sidebar { width: var(--sidebar-width); background-color: #ffffff; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; }
        .sidebar-header { display: flex; align-items: center; justify-content: center; padding: 0 15px; height: var(--header-height); border-bottom: 1px solid var(--border-color); }
        .logo { height: 35px; margin-right: 10px; }
        .sidebar-header h1 { font-size: 16px; font-weight: 600; color: var(--primary-color); white-space: nowrap; }
        .sidebar-nav { flex-grow: 1; padding: 20px 0; }
        .sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
        .sidebar-nav li a { display: flex; align-items: center; padding: 12px 20px; color: #555; text-decoration: none; transition: all 0.2s; font-weight: 500; }
        .sidebar-nav li a:hover { background-color: #f0f7f2; color: var(--primary-color); }
        .sidebar-nav li a.active { background-color: var(--primary-color); color: white; border-right: 4px solid var(--accent-color); }
        .sidebar-nav li a .fa-fw { margin-right: 15px; width: 20px; text-align: center; }
        .main-wrapper { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
        .header { height: var(--header-height); background-color: #fff; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: flex-end; padding: 0 30px; }
        .header-actions { display: flex; align-items: center; gap: 25px; }
        .header-actions .icon-btn { font-size: 18px; color: #666; cursor: pointer; }
        .user-profile { display: flex; align-items: center; gap: 10px; }
        .user-profile img { width: 36px; height: 36px; border-radius: 50%; }
        .user-profile span { font-weight: 500; }
        .main-content { flex-grow: 1; padding: 30px; overflow-y: auto; }
        .content-card { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: relative; padding-bottom: 80px; }
        h2.page-title { font-size: 24px; font-weight: 600; margin-top: 0; margin-bottom: 25px; }
        .btn { padding: 10px 20px; border-radius: 5px; border: 1px solid transparent; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
        .btn-primary { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
        .btn-primary:hover { background-color: #005a2f; }
        .table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        .table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
        .table th { background-color: #f8f9fa; font-weight: 600; color: #444; }
        .table tbody tr:hover { background-color: #f0f7f2; }
        .table .action-cell .btn-icon { color: #666; background: none; border: none; cursor: pointer; padding: 5px; margin-right: 10px; font-size: 16px; }
        .table .action-cell .btn-icon:hover { color: var(--primary-color); }
        .tabs { border-bottom: 2px solid var(--border-color); margin-bottom: 25px; }
        .tabs button { background: none; border: none; padding: 15px 25px; cursor: pointer; font-size: 16px; font-weight: 500; color: #666; border-bottom: 3px solid transparent; margin-bottom: -2px; }
        .tabs button.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
        
        .page-actions {
            position: absolute;
            bottom: 25px;
            right: 25px;
            display: flex;
            gap: 15px;
        }
        .table input[type="text"] {
            width: 95%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <!-- Sidebar -->
        <aside class="sidebar">
            <div class="sidebar-header">
                <img src="https://i.imgur.com/uTjxkMh.png" alt="Logo" class="logo">
                <h1>文档智能生成平台</h1>
            </div>
            <nav class="sidebar-nav">
                <ul>
                    <li><a href="#"><i class="fas fa-cog fa-fw"></i> 系统管理</a></li>
                    <li><a href="#"><i class="fas fa-database fa-fw"></i> 数据获取</a></li>
                    <li><a href="#"><i class="fas fa-file-alt fa-fw"></i> 模板管理</a></li>
                    <li><a href="#" class="active"><i class="fas fa-cogs fa-fw"></i> 内容配置</a></li>
                    <li><a href="#"><i class="fas fa-receipt fa-fw"></i> 流水解析</a></li>
                    <li><a href="#"><i class="fas fa-magic fa-fw"></i> 文档生成</a></li>
                </ul>
            </nav>
        </aside>

        <!-- Main Wrapper -->
        <div class="main-wrapper">
            <!-- Header -->
            <header class="header">
                 <div class="header-actions">
                    <i class="fas fa-bell icon-btn"></i>
                    <i class="fas fa-question-circle icon-btn"></i>
                    <div class="user-profile">
                        <img src="https://i.pravatar.cc/40?u=admin" alt="User Avatar">
                        <span>王经理</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                </div>
            </header>

            <!-- Main Content -->
            <main class="main-content">
                <h2 class="page-title">内容配置</h2>
                <div class="content-card">
                    <div class="tabs">
                        <button class="active">固定数据</button>
                        <button>文本填充规则</button>
                        <button>运算与结论规则</button>
                    </div>
                    <p style="color: #666;">配置系统生成文档时所需的固定业务知识，如产品利率、业务编码等。</p>
                    <table class="table">
                        <thead>
                            <tr>
                                <th style="width: 25%;">数据项 (Key)</th>
                                <th>配置值 (Value)</th>
                                <th style="width: 15%;">最后修改人</th>
                                <th style="width: 15%;">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>小微企业贷-年利率</td>
                                <td><input type="text" value="3.85%"></td>
                                <td>王经理</td>
                                <td class="action-cell">
                                    <button class="btn-icon" title="删除"><i class="fas fa-trash"></i></button>
                                </td>
                            </tr>
                            <tr>
                                <td>个人消费贷-最高额度</td>
                                <td><input type="text" value="300,000元"></td>
                                <td>张三</td>
                                <td class="action-cell">
                                    <button class="btn-icon" title="删除"><i class="fas fa-trash"></i></button>
                                </td>
                            </tr>
                            <tr>
                                <td>总行地址</td>
                                <td><input type="text" value="北京市西城区金融大街XX号"></td>
                                <td>李四</td>
                                <td class="action-cell">
                                    <button class="btn-icon" title="删除"><i class="fas fa-trash"></i></button>
                                </td>
                            </tr>
                            <tr>
                                <td>客服热线</td>
                                <td><input type="text" value="96668"></td>
                                <td>王经理</td>
                                <td class="action-cell">
                                    <button class="btn-icon" title="删除"><i class="fas fa-trash"></i></button>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <div class="page-actions">
                         <button class="btn btn-primary">
                            <i class="fas fa-save"></i> 保存配置
                        </button>
                    </div>
                </div>
            </main>
        </div>
    </div>
</body>
</html>
